package com.byCreation.Control;

import java.util.ArrayList;

import android.os.Environment;
import android.util.Log;

public class Control {

	

	public static String page_id="3006";//1732 //3006//27
	public static String Current_id="3006";//1732 //3006
	
	
	public static String IDGoogleanalytics ="UA-25492289-2";//1732 //3006

	
	
	
	public static String MainActivity="MainActivity"; 
	public static String ContentActivity="ContentActivity"; 
	public static String MapActivity="MapActivity"; 
	public static String CardActivity="CardActivity"; 
	public static String CardDetailActivity="CardDetailActivity"; 
	
	
	public static String Now_Activity=MainActivity; // Activity showing
	

	
	//=============CardList===========
	public static ArrayList<Boolean> Cardlist_ShowDetail = new ArrayList<Boolean>();
	public static ArrayList<String> Cardlist_card_id = new ArrayList<String>();
	public static ArrayList<String> Cardlist_card_name_en = new ArrayList<String>();
	public static ArrayList<String> Cardlist_card_name_th = new ArrayList<String>();
	public static String Data_ContentAPI="";
	
	
	//pointer ScreenPointers
	public static String Pointers="map";
	
	//================API  Information
	
	//authen
	public static String user="admin";
	public static String pass="tglobe";
	public static String UserName="maxgunner";
	public static String UserPassword="";

	public static String Img_profile="";
	public static String Img_profile_Path=Environment.getExternalStorageDirectory()+ "/Android/data/com.byCreation.t_globe/Image_Profile.png";
	
	
	public static String API_Information="http://api.bycreation.co.th/API_01/menu/information";
	public static String API_main_menu="http://api.bycreation.co.th/API_01/menu/main_menu";
	//public static String API_main_menu="http://api.bycreation.co.th/API_01/menu/main_menu_thai";
	public static String API_Login ="http://api.bycreation.co.th/API_02/index.php?/api/api/login/format/json";
	public static String API_Register ="http://api.bycreation.co.th/API_02/index.php?/api/api/regist/format/json";
	
	
	
	

	
	
	public static String getAPI_Content(String page_id)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/content/pageid/"+page_id+"/format/json";
	}

	public static String getAPI_Card(String card_id)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/card/blockid/"+card_id+"/format/json";
	}
	
	public static String getAPI_Card_detail(String card_id,String card_name)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/card_detail/cardid/"+card_id+"/name/"+card_name+"/format/json";
	}
	
	public static String getAPI_Map(String page_id)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/map/pageid/"+page_id+"/format/json";
	}
	
	public static String getAPI_AddTobookmark_Page(String page_id,String Username)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/bookmark_page/username/"+Username+"/pageid/"+page_id+"/format/json";
	}
	public static String getAPI_AddTobookmark_Card(String Card_id,String title,String Username)
	{
	// return "http://api.bycreation.co.th/API_02/index.php?/api/api/bookmark_card/username/"+Username+"/cardid/"+Card_id+"/format/json";
	
		Log.e("TG","title:"+title);
		
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/bookmark_card/username/"+Username+"/cardid/"+Card_id+"/name/"+title+"/format/json";
	
	}
	
	
	public static String getAPI_SaveNote()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/save_note/format/json";
	}	
	public static String getAPI_SaveNote_Card()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/save_note_card/format/json";
	}

	



	
	
	
	public static String getAPI_AddToCompare()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/compare/format/json";
	}
	
	
	public static String getAPI_AddToHistory(String username,String Page_id)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/save_page_history/username/"+username+"/pageid/"+Page_id+"/format/json";
	}

	
	public static String getAPI_BookmarkList(String username)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/bookmark_list/username/"+username+"/format/json";
	}
	
	
	
	
	public static String getAPI_NoteList(String username)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/note_list/username/"+username+"/format/json";
	}
	
	public static String getAPI_NoticeList()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/notice_list/format/json";
	}
	 
	public static String getAPI_T_GLOBE_APP()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/tglobe_app_list//format/json";
	}
	
	public static String getAPI_Discount_Coupon()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/discount_list/format/json";
	}
	
	
	public static String getAPI_LoadNotePage()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/load_note_page/format/json";
	}
	public static String getAPI_LoadNoteCard()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/load_note_card/format/json";
	}

	public static String getAPI_Notification()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/notification/format/json";
	}
	public static String getAPI_MyHistory(String username)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/myhistory/username/"+username+"/format/json";
	}

	
	
	public static String getAPI_Mycompare(String username)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/mycompare/username/"+username+"/format/json";
	}
	
	
	public static String getAPI_UpdateImageProfile()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/update_img_profile/format/json";

	}
	
	public static String getAPI_LoadProfile(String UserName)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/load_profile/username/"+UserName+"/format/json";

	}
	
	public static String getAPI_SaveProfile()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/save_profile/format/json";

	}
	
	public static String getAPI_MainMenuCover(String Username)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/main_menu_page/app_id/2/format/json";

	}
	public static String getAPI_GalleryContent(String Page_Id)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/gallery_content/pageid/"+Page_Id+"/format/json";

	}
	
	public static String getAPI_GalleryDetail(String cardid,String CardName)
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/gellery_card_detail/cardid/"+cardid+"/name/"+CardName+"/format/json";

	}
	
	
	// (history , bookmark , note)
	public static String getAPI_ALLClear(String ClearType,String UserName)
	{
		return "http://api.bycreation.co.th/API_02/index.php?/api/api/clear/type/"+ClearType+"/username/"+UserName+"/format/json";
	}
	public static String getAPI_CHANGE_PASSWORD()
	{
	 return "http://api.bycreation.co.th/API_02/index.php?/api/api/change_passwd/format/json";

	}
	
	
	
	
	
//	public static String Mainmenu_page_title="เกาะพะงัน";
//	public static String Mainmenu_Data_Dafalt="";
//	public static ArrayList<MenuData> Mainmenu_List_DATA_History = new ArrayList<MenuData>();
//	public static ArrayList<String> Mainmenu_List_Menu_Title = new ArrayList<String>();
//	
//	
//	public static String information_page_title="t-Globe Highlights";
//	public static String information_Data_Dafalt="";
//	public static ArrayList<MenuData> information_List_DATA_History = new ArrayList<MenuData>();
//	public static ArrayList<String> information_List_Menu_Title = new ArrayList<String>();
	
	
	public static String block_id="112";
	public static String carddetail_id="112";
	public static String carddetail_name="";
	

	
	// Login
	
	public static  boolean Loginstatus=true;
	

	//slidemenu
	public static  int setEdgetSlideWidth=40;
	
	

	//=======Note
	public static String Note_Temp_Title;
	public static String Note_Temp_Data;
	public static boolean Call_From_Note;
	
	
	
	//=======Detail 
	public static String Title;
	public static String SubTitle;
	public static String Img;
	public static String Html;
	
	
	
	
	
}
